package com.lanyu.mybatis.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class CommunityUserChat {

    public String getFromname() {
        return fromname;
    }

    public void setFromname(String fromname) {
        this.fromname = fromname;
    }
    @TableField(exist = false)
    private String fromname;

    public String getToname() {
        return toname;
    }

    public void setToname(String toname) {
        this.toname = toname;
    }
    @TableField(exist = false)
    private String toname;

    public String getFromnameHead() {
        return fromnameHead;
    }

    public void setFromnameHead(String fromnameHead) {
        this.fromnameHead = fromnameHead;
    }

    public String getTonameHead() {
        return tonameHead;
    }

    public void setTonameHead(String tonameHead) {
        this.tonameHead = tonameHead;
    }

    @TableField(exist = false)
    private String fromnameHead;
    @TableField(exist = false)
    private String tonameHead;

    public String getChatId() {
        return chatId;
    }

    public void setChatId(String chatId) {
        this.chatId = chatId;
    }

    @TableId(type = IdType.UUID)
    private String chatId;

    private String fromUid;

    private String toUid;

    private String message;

    private Date createTime;

    private Integer type;

    public String getFromUid() {
        return fromUid;
    }

    public void setFromUid(String fromUid) {
        this.fromUid = fromUid == null ? null : fromUid.trim();
    }

    public String getToUid() {
        return toUid;
    }

    public void setToUid(String toUid) {
        this.toUid = toUid == null ? null : toUid.trim();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}